package com.aaa.a1108.demo03;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test01 {
   public static void main(String[] args) {
       DC5 dc5 = new PowerAdapter();
       System.out.println("输出电流：" + dc5.output5V() + "V");
   }
}
class AC220 {
    //输出220V交流电
    public int output220V() {
        int output = 220;
        return output;
    }
}
interface DC5 {
    //输出5V直流电
    int output5V();
}
class PowerAdapter extends AC220 implements DC5 {
   //输出5V直流电
    @Override
    public int output5V() {
        int output = output220V();
        return (output / 44);
    }
}